package com.simon.hse.adapter;

import android.content.Context;
import android.support.v4.widget.NestedScrollView;
import android.util.AttributeSet;
import android.view.MotionEvent;

@SuppressWarnings("all")
public class CommonScrollView extends NestedScrollView {
    private Context context;
    HomeRefreshCallBack homeRefreshCallBack;


    public void setHomeRefreshCallBack(HomeRefreshCallBack homeRefreshCallBack) {
        this.homeRefreshCallBack = homeRefreshCallBack;
    }

    public CommonScrollView(Context context) {
        this(context, null);
    }

    public CommonScrollView(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.context = context;
    }


    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        return super.onTouchEvent(ev);
        
    }

    public interface HomeRefreshCallBack {
        void refreshcallback();

        void loadcallback();
    }
}
